﻿<%@ Page Title="Login" Language="C#" MasterPageFile="~/MasterCommon.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Login" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div style="height: 141px; margin-top: 1px; width: 940px; background-color: #ffffff">
    <asp:Label ID="lblmsg" runat="server"></asp:Label>
        <img src="Images/ImageB/login.png" alt="DIS Accounts" width="940px" />
    </div>
    <div align="center" style="margin-top: 7px; height: 400px;">
        <div align="center" style="background-image: url('Images/ImageB/loginpage.png');
            background-repeat: no-repeat; height: 334px; width: 424px;">
            <div style="padding-top: 35px;">
                <asp:Login ID="LoginUser" runat="server" Font-Size="X-Small" OnAuthenticate="LoginUser_Authenticate"
                    FailureText="Login Failed!" CssClass="false" OnLoggedIn="LoginUser_LoggedIn">
                    <LayoutTemplate>
                        <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                            <tr>
                                <td align="left" class="loginhead" align="center" colspan="2" style="padding-bottom: 4px;
                                    width: 260px;">
                                    <img src="Images/ImageA/bullet.png" />
                                    <span style="width: 260px">Login with your username and password </span>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="border-top: 1px dashed #c0c0c0; color: Red; padding-top: 2px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="username" colspan="2">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="UserName" runat="server" CssClass="input" Width="240px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="username" colspan="2" style="padding-top: 4px;">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="Password" runat="server" CssClass="input" TextMode="Password" Width="240px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" class="username" colspan="2" style="padding-top: 4px;">
                                    <asp:Label ID="Label1" runat="server">Company Code&nbsp;</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="TxtCompanyName" runat="server" CssClass="input" MaxLength="50" Width="240"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtCompanyName"
                                        ToolTip="Company name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                    <ajaxToolkit:AutoCompleteExtender ID="TxtCompanyName_AutoCompleteExtender" runat="server"
                                        CompletionInterval="0" CompletionListCssClass="autocomplete_completionListElement"
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem"
                                        DelimiterCharacters=";" EnableCaching="true" Enabled="True" FirstRowSelected="true"
                                        MinimumPrefixLength="1" ServiceMethod="GetCompanies" ServicePath="~/WebServices/Company.asmx"
                                        ShowOnlyCurrentWordInCompletionListItem="true" TargetControlID="TxtCompanyName">
                                    </ajaxToolkit:AutoCompleteExtender>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left" style="padding-top: 6px">
                                    <asp:CheckBox ID="chBox" runat="server" />
                                    <span class="Remember">Remember me next time </span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                                <td align="right" style="padding-right: 20px;">
                                    <asp:ImageButton ID="LoginButton" runat="server" CommandName="Login" ImageUrl="~/Images/ImageA/signin.png"
                                        ValidationGroup="Login1" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center" class="false" style="padding-top: 2px;">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                </asp:Login>
            </div>
        </div>
    </div>
</asp:Content>
